<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">系统基本设置</div>
                <div class="layui-card-body">
                    <form class="layui-form" target="hide_form" method="post" action="">
                        <div class="layui-form">
                            <div class="layui-form-item">
                                <label class="layui-form-label">SMTP地址</label>
                                <div class="layui-input-block">
                                    <input type="text" name="smtp" value="{$email.smtp|default=''}" placeholder="SMTP地址" class="layui-input">
                                    <span>发送邮件的SMTP地址。例如:smtp.gmail.com。</span>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">是否启用SSL连接</label>
                                <div class="layui-input-inline">
                                    <input type="radio" name="is_ssl" value="0" title="NO" {empty name="email.is_ssl"} checked {/empty} >
                                    <input type="radio" name="is_ssl" value="1" title="YES" {notempty name="email.is_ssl"} checked {/notempty} >
                                    <span>此选项要求服务器环境支持SSL(如果使用Gmail，请选择YES)</span>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">端口</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="port" value="{$email.port|default=''}" placeholder="" class="layui-input">
                                    <span>为SMTP端口。默认值是25。请参考每个STMP服务的设置(如果使用Gmail，将端口设置为465)。</span>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">邮箱地址</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="email_address" value="{$email.email_address|default=''}" placeholder="" class="layui-input">
                                    <span>电子邮件地址请输入完整地址email@email.com格式</span>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">邮箱密码</label>
                                <div class="layui-input-inline">
                                    <input type="password" name="email_password" value="{$email.email_password|default=''}" placeholder="" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">收件人</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="send_name" value="{$email.send_name|default=''}" placeholder="" class="layui-input">
                                    <span>消息中显示的发送方名称</span>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">收件邮箱</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="send_email" value="{$email.send_email|default=''}" placeholder="" class="layui-input">
                                    <span>邮件中显示的发件人电子邮件</span>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <input type="submit" class="layui-btn layui-btn-normal" value="立即保存">
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>